package org.hxd.user.dao;

import org.apache.ibatis.annotations.Param;
import org.hxd.pojo.User_inf;
import org.hxd.units.PageModel;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserDao {
    //登录查询
    User_inf query_User(User_inf user_inf);
    //分页查询
    List<User_inf> findUser(Map map);

    int finduserCount(User_inf user_inf);
    //根据id查询用户
    User_inf findUserByid(Integer id);

    int modifyUser(User_inf user_inf);
    //添加用户
    int addUser(User_inf user_inf);

    int removeUser(@Param("ids") Integer[] ids);
    //添加用户判断
    User_inf findUserByname(String loginname);
}
